package exception;


/**
 * 异常练习
 */
public class ExceptionExercise03 {

    public static void func() {
        try{
            throw new RuntimeException();
        } finally {
            System.out.println("B");
        }

    }

    public static void main(String[] args) {

        try {
            func();
            System.out.println("A");
        }
        catch (Exception e) {
            System.out.println("C");
        }
        System.out.println("D");
    }
    /*
        输出:
        B
        C
        D
     */
}
